package com.mazaiting.springdemo.ch01;

import com.mazaiting.spring.annotations.Autowired;
import com.mazaiting.spring.annotations.Component;
import com.mazaiting.spring.annotations.Scope;
import com.mazaiting.spring.bean.BeanDefinition;

/***
 * 测试服务
 * @author mazaiting
 * @datetime 2021/11/17 19:54  
 */
//@Component(value = "testService")
@Component
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE)
public class TestService {

    @Autowired
    UserService userService;

    @Autowired
    UserService userService1;

    public void test() {
        System.out.println(userService);
        System.out.println(userService1);
    }

}
